# Contributor: Marvin Preuss <marvin@xsteadfastx.org>
# Maintainer: Marvin Preuss <marvin@xsteadfastx.org>
pkgname=libupnpp
pkgver=0.26.3
pkgrel=0
pkgdesc="C++ wrapper for libupnp"
url="https://framagit.org/medoc92/libupnpp"
arch="all"
license="LGPL-2.0-or-later"
options="!check"
makedepends="curl-dev expat-dev libnpupnp-dev"
subpackages="$pkgname-dev"
source="libupnpp-$pkgver.tar.gz::https://www.lesbonscomptes.com/upmpdcli/downloads/libupnpp-$pkgver.tar.gz"

build() {
	./configure \
		--prefix=/usr \
		--build=$CBUILD \
		--host=$CHOST
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
78f9f3fabfbe3f79dc75153e95dc12e6a45064ee853ba19d8e0354baa37e7a2f673d4bc27b73196d91053f976fca7d5837b60de485a48150f6d20217ecedfc78  libupnpp-0.26.3.tar.gz
"
